home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12307 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 31 2e 63 68 61 6e |Path: ne|ws1.chan|
|00000010| 6e 65 6c 31 2e 63 6f 6d | 21 6b 61 73 70 65 72 0a |nel1.com|!kasper.|
|00000020| 46 72 6f 6d 3a 20 6b 61 | 73 70 65 72 6f 77 73 6b |From: ka|sperowsk|
|00000030| 69 40 61 63 6d 2e 6f 72 | 67 0a 4e 65 77 73 67 72 |i@acm.or|g.Newsgr|
|00000040| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000050| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 53 |c.Subjec|t: Re: S|
|00000060| 65 74 74 6c 65 20 61 20 | 62 65 74 20 70 6c 65 61 |ettle a |bet plea|
|00000070| 73 65 0a 44 61 74 65 3a | 20 33 30 20 4d 61 72 20 |se.Date:| 30 Mar |
|00000080| 31 39 39 36 20 31 33 3a | 35 31 3a 34 37 20 47 4d |1996 13:|51:47 GM|
|00000090| 54 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|000000a0| 52 69 63 68 27 73 20 52 | 65 66 72 69 65 64 20 42 |Rich's R|efried B|
|000000b0| 65 61 6e 73 20 26 20 54 | 68 69 6e 67 73 0a 4d 65 |eans & T|hings.Me|
|000000c0| 73 73 61 67 65 2d 49 44 | 3a 20 3c 4b 41 53 50 45 |ssage-ID|: <KASPE|
|000000d0| 52 2e 39 36 4d 61 72 33 | 30 30 38 35 31 34 37 40 |R.96Mar3|0085147@|
|000000e0| 61 63 6d 2e 6f 72 67 3e | 0a 52 65 66 65 72 65 6e |acm.org>|.Referen|
|000000f0| 63 65 73 3a 20 3c 34 6a | 66 6f 70 62 24 6f 39 6e |ces: <4j|fopb$o9n|
|00000100| 40 6e 65 77 73 31 2e 73 | 79 6d 70 61 74 69 63 6f |@news1.s|ympatico|
|00000110| 2e 63 61 3e 20 3c 4b 41 | 53 50 45 52 2e 39 36 4d |.ca> <KA|SPER.96M|
|00000120| 61 72 32 39 30 37 33 36 | 35 34 40 61 63 6d 2e 6f |ar290736|54@acm.o|
|00000130| 72 67 3e 0a 09 3c 6d 6a | 73 2e 38 32 38 31 31 31 |rg>..<mj|s.828111|
|00000140| 35 36 38 40 68 75 62 63 | 61 70 3e 0a 52 65 70 6c |568@hubc|ap>.Repl|
|00000150| 79 2d 54 6f 3a 20 3c 6b | 61 73 70 65 72 6f 77 73 |y-To: <k|asperows|
|00000160| 6b 69 40 61 63 6d 2e 6f | 72 67 3e 0a 4e 4e 54 50 |ki@acm.o|rg>.NNTP|
|00000170| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 72 |-Posting|-Host: r|
|00000180| 65 6d 6f 74 65 33 31 2e | 63 68 61 6e 6e 65 6c 31 |emote31.|channel1|
|00000190| 2e 63 6f 6d 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |.com.Mim|e-Versio|
|000001a0| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|000001b0| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|000001c0| 20 63 68 61 72 73 65 74 | 3d 55 53 2d 41 53 43 49 | charset|=US-ASCI|
|000001d0| 49 0a 49 6e 2d 72 65 70 | 6c 79 2d 74 6f 3a 20 6d |I.In-rep|ly-to: m|
|000001e0| 6a 73 40 68 75 62 63 61 | 70 2e 63 6c 65 6d 73 6f |js@hubca|p.clemso|
|000001f0| 6e 2e 65 64 75 27 73 20 | 6d 65 73 73 61 67 65 20 |n.edu's |message |
|00000200| 6f 66 20 32 39 20 4d 61 | 72 20 39 36 20 31 34 3a |of 29 Ma|r 96 14:|
|00000210| 35 39 3a 32 38 20 47 4d | 54 0a 0a 49 6e 20 61 72 |59:28 GM|T..In ar|
|00000220| 74 69 63 6c 65 20 3c 6d | 6a 73 2e 38 32 38 31 31 |ticle <m|js.82811|
|00000230| 31 35 36 38 40 68 75 62 | 63 61 70 3e 20 6d 6a 73 |1568@hub|cap> mjs|
|00000240| 40 68 75 62 63 61 70 2e | 63 6c 65 6d 73 6f 6e 2e |@hubcap.|clemson.|
|00000250| 65 64 75 20 28 4d 2e 20 | 4a 2e 20 53 61 6c 74 7a |edu (M. |J. Saltz|
|00000260| 6d 61 6e 29 20 77 72 69 | 74 65 73 3a 0a 0a 20 7c |man) wri|tes:.. ||
|00000270| 20 6b 61 73 70 65 72 6f | 77 73 6b 69 40 61 63 6d | kaspero|wski@acm|
|00000280| 2e 6f 72 67 20 77 72 69 | 74 65 73 3a 0a 20 7c 20 |.org wri|tes:. | |
|00000290| 0a 20 7c 20 3e 20 63 68 | 61 72 20 4e 61 6d 65 5b |. | > ch|ar Name[|
|000002a0| 38 5d 20 3d 20 22 4d 79 | 20 4e 61 6d 65 22 3b 0a |8] = "My| Name";.|
|000002b0| 20 7c 20 0a 20 7c 20 3e | 69 73 20 63 6f 72 72 65 | | . | >|is corre|
|000002c0| 63 74 2e 20 20 54 68 65 | 72 65 27 73 20 61 20 5c |ct. The|re's a \|
|000002d0| 30 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |0 at the| end of |
|000002e0| 22 4d 79 20 4e 61 6d 65 | 22 2e 0a 20 7c 20 0a 20 |"My Name|".. | . |
|000002f0| 7c 20 3e 20 63 68 61 72 | 20 4e 61 6d 65 5b 5d 20 || > char| Name[] |
|00000300| 3d 20 22 4d 79 20 4e 61 | 6d 65 22 3b 0a 20 7c 20 |= "My Na|me";. | |
|00000310| 0a 20 7c 20 3e 69 73 20 | 62 65 74 74 65 72 3b 20 |. | >is |better; |
|00000320| 74 68 65 20 63 6f 6d 70 | 69 6c 65 72 20 64 6f 65 |the comp|iler doe|
|00000330| 73 20 74 68 65 20 63 6f | 75 6e 74 69 6e 67 20 66 |s the co|unting f|
|00000340| 6f 72 20 79 6f 75 2e 0a | 20 7c 20 0a 20 7c 20 41 |or you..| | . | A|
|00000350| 63 74 75 61 6c 6c 79 2c | 20 61 6c 6c 20 74 68 72 |ctually,| all thr|
|00000360| 65 65 20 61 72 65 20 63 | 6f 72 72 65 63 74 2c 20 |ee are c|orrect, |
|00000370| 74 68 65 79 20 6a 75 73 | 74 20 6d 65 61 6e 20 64 |they jus|t mean d|
|00000380| 69 66 66 65 72 65 6e 74 | 20 74 68 69 6e 67 73 2e |ifferent| things.|
|00000390| 20 20 46 69 72 73 74 2c | 0a 20 7c 20 0a 20 7c 20 | First,|. | . | |
|000003a0| 09 63 68 61 72 20 6e 61 | 6d 65 5b 5d 20 3d 20 22 |.char na|me[] = "|
|000003b0| 4d 79 20 6e 61 6d 65 22 | 3b 0a 20 7c 20 0a 20 7c |My name"|;. | . ||
|000003c0| 20 61 6e 64 20 0a 20 7c | 20 0a 20 7c 20 09 63 68 | and . || . | .ch|
|000003d0| 61 72 20 6e 61 6d 65 5b | 38 5d 20 3d 20 22 4d 79 |ar name[|8] = "My|
|000003e0| 20 6e 61 6d 65 22 3b 0a | 20 7c 20 0a 20 7c 20 64 | name";.| | . | d|
|000003f0| 6f 20 6d 65 61 6e 20 74 | 68 65 20 73 61 6d 65 20 |o mean t|he same |
|00000400| 74 68 69 6e 67 3a 20 72 | 65 73 65 72 76 65 20 38 |thing: r|eserve 8|
|00000410| 20 63 68 61 72 73 20 61 | 6e 64 20 69 6e 69 74 69 | chars a|nd initi|
|00000420| 61 6c 69 7a 65 20 74 68 | 65 6d 20 74 6f 20 63 6f |alize th|em to co|
|00000430| 6e 74 61 69 6e 0a 20 7c | 20 0a 20 7c 20 09 7b 27 |ntain. || . | .{'|
|00000440| 4d 27 2c 20 27 79 27 2c | 20 27 20 27 2c 20 27 6e |M', 'y',| ' ', 'n|
|00000450| 27 2c 20 27 61 27 2c 20 | 27 6d 27 2c 20 27 65 27 |', 'a', |'m', 'e'|
|00000460| 2c 20 27 5c 30 27 7d 2e | 20 20 0a 20 7c 20 0a 20 |, '\0'}.| . | . |
|00000470| 7c 20 54 68 69 73 20 6d | 65 61 6e 73 20 74 68 61 || This m|eans tha|
|00000480| 74 20 6e 61 6d 65 5b 5d | 20 63 61 6e 20 62 65 20 |t name[]| can be |
|00000490| 74 72 65 61 74 65 64 20 | 61 73 20 61 20 22 43 20 |treated |as a "C |
|000004a0| 73 74 72 69 6e 67 22 20 | 28 69 2e 65 2e 2c 20 61 |string" |(i.e., a|
|000004b0| 0a 20 7c 20 6e 75 6c 6c | 2d 74 65 72 6d 69 6e 61 |. | null|-termina|
|000004c0| 74 65 64 20 73 74 72 69 | 6e 67 29 20 61 6e 64 20 |ted stri|ng) and |
|000004d0| 75 73 65 64 20 77 69 74 | 68 20 74 68 65 20 43 20 |used wit|h the C |
|000004e0| 73 74 72 69 6e 67 20 61 | 6e 64 20 69 2f 6f 20 6c |string a|nd i/o l|
|000004f0| 69 62 72 61 72 79 0a 20 | 7c 20 72 6f 75 74 69 6e |ibrary. || routin|
|00000500| 65 73 20 74 68 61 74 20 | 75 6e 64 65 72 73 74 61 |es that |understa|
|00000510| 6e 64 20 61 62 6f 75 74 | 20 6e 75 6c 6c 2d 74 65 |nd about| null-te|
|00000520| 72 6d 69 6e 61 74 65 64 | 20 73 74 72 69 6e 67 73 |rminated| strings|
|00000530| 2e 0a 20 7c 20 0a 20 7c | 20 42 75 74 0a 20 7c 20 |.. | . || But. | |
|00000540| 0a 20 7c 20 09 63 68 61 | 72 20 6e 61 6d 65 5b 37 |. | .cha|r name[7|
|00000550| 5d 20 3d 20 22 4d 79 20 | 6e 61 6d 65 22 3b 0a 20 |] = "My |name";. |
|00000560| 7c 20 0a 20 7c 20 72 65 | 73 65 72 76 65 73 20 37 || . | re|serves 7|
|00000570| 20 63 68 61 72 73 2c 20 | 61 6e 64 20 69 6e 69 74 | chars, |and init|
|00000580| 69 61 6c 69 7a 65 73 20 | 74 68 65 6d 20 74 6f 20 |ializes |them to |
|00000590| 63 6f 6e 74 61 69 6e 0a | 20 7c 20 0a 20 7c 20 09 |contain.| | . | .|
|000005a0| 7b 27 4d 27 2c 20 27 79 | 27 2c 20 27 20 27 2c 20 |{'M', 'y|', ' ', |
|000005b0| 27 6e 27 2c 20 27 61 27 | 2c 20 27 6d 27 2c 20 27 |'n', 'a'|, 'm', '|
|000005c0| 65 27 7d 2e 0a 20 7c 20 | 0a 20 7c 20 54 68 69 73 |e'}.. | |. | This|
|000005d0| 20 69 73 20 70 65 72 66 | 65 63 74 6c 79 20 6c 65 | is perf|ectly le|
|000005e0| 67 61 6c 20 43 2c 20 62 | 75 74 20 74 68 65 20 72 |gal C, b|ut the r|
|000005f0| 65 73 75 6c 74 69 6e 67 | 20 61 72 72 61 79 20 6f |esulting| array o|
|00000600| 66 20 63 68 61 72 61 63 | 74 65 72 73 20 69 73 0a |f charac|ters is.|
|00000610| 0a 49 6e 20 70 72 69 76 | 61 74 65 20 65 2d 6d 61 |.In priv|ate e-ma|
|00000620| 69 6c 2c 20 73 6f 6d 65 | 6f 6e 65 20 73 61 69 64 |il, some|one said|
|00000630| 20 74 68 65 20 73 61 6d | 65 20 74 68 69 6e 67 20 | the sam|e thing |
|00000640| 74 6f 20 6d 65 2c 20 61 | 6e 64 20 49 20 72 65 70 |to me, a|nd I rep|
|00000650| 6c 69 65 64 2c 0a 22 73 | 75 72 65 2c 20 49 20 67 |lied,."s|ure, I g|
|00000660| 75 65 73 73 20 79 6f 75 | 27 72 65 20 72 69 67 68 |uess you|'re righ|
|00000670| 74 2e 22 20 20 49 20 77 | 61 73 20 77 72 6f 6e 67 |t." I w|as wrong|
|00000680| 20 2d 2d 20 74 68 69 73 | 20 69 73 20 69 6c 6c 65 | -- this| is ille|
|00000690| 67 61 6c 2e 0a 0a 49 6e | 20 41 4e 53 49 20 43 2c |gal...In| ANSI C,|
|000006a0| 20 0a 0a 20 63 68 61 72 | 20 6e 61 6d 65 5b 37 5d | .. char| name[7]|
|000006b0| 20 3d 20 22 4d 79 20 6e | 61 6d 65 22 3b 0a 0a 77 | = "My n|ame";..w|
|000006c0| 68 69 63 68 20 69 73 20 | 74 68 65 20 73 61 6d 65 |hich is |the same|
|000006d0| 20 61 73 0a 0a 20 63 68 | 61 72 20 6e 61 6d 65 5b | as.. ch|ar name[|
|000006e0| 37 5d 20 3d 20 7b 27 4d | 27 2c 20 27 79 27 2c 20 |7] = {'M|', 'y', |
|000006f0| 27 20 27 2c 20 27 6e 27 | 2c 20 27 61 27 2c 20 27 |' ', 'n'|, 'a', '|
|00000700| 6d 27 2c 20 27 65 27 2c | 20 27 5c 30 27 7d 3b 0a |m', 'e',| '\0'};.|
|00000710| 0a 69 73 20 2a 6e 6f 74 | 2a 20 6c 65 67 61 6c 2e |.is *not|* legal.|
|00000720| 20 20 53 65 63 74 69 6f | 6e 20 41 38 2e 37 20 6f | Sectio|n A8.7 o|
|00000730| 6e 20 70 2e 20 32 31 39 | 20 6f 66 20 41 70 70 65 |n p. 219| of Appe|
|00000740| 6e 64 69 78 20 41 20 6f | 66 20 6d 79 20 63 6f 70 |ndix A o|f my cop|
|00000750| 79 20 6f 66 0a 4b 26 52 | 27 73 20 5f 54 68 65 20 |y of.K&R|'s _The |
|00000760| 43 20 50 72 6f 67 72 61 | 6d 6d 69 6e 67 20 4c 61 |C Progra|mming La|
|00000770| 6e 67 75 61 67 65 5f 2c | 20 32 6e 64 20 65 64 2e |nguage_,| 2nd ed.|
|00000780| 2c 20 73 61 79 73 3a 0a | 0a 20 49 66 20 74 68 65 |, says:.|. If the|
|00000790| 20 61 72 72 61 79 20 68 | 61 73 20 66 69 78 65 64 | array h|as fixed|
|000007a0| 20 73 69 7a 65 2c 20 74 | 68 65 20 6e 75 6d 62 65 | size, t|he numbe|
|000007b0| 72 20 6f 66 20 69 6e 69 | 74 69 61 6c 69 7a 65 72 |r of ini|tializer|
|000007c0| 73 20 6d 61 79 20 6e 6f | 74 0a 20 65 78 63 65 65 |s may no|t. excee|
|000007d0| 64 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |d the nu|mber of |
|000007e0| 6d 65 6d 62 65 72 73 20 | 6f 66 20 74 68 65 20 61 |members |of the a|
|000007f0| 72 72 61 79 20 2e 20 2e | 20 2e 0a 0a 54 68 65 20 |rray . .| ...The |
|00000800| 6c 69 6e 65 20 73 70 65 | 63 69 66 69 65 73 20 61 |line spe|cifies a|
|00000810| 6e 20 61 72 72 61 79 20 | 6f 66 20 66 69 78 65 64 |n array |of fixed|
|00000820| 20 73 69 7a 65 20 37 20 | 63 68 61 72 73 2c 20 61 | size 7 |chars, a|
|00000830| 6e 64 20 74 68 65 6e 0a | 69 6e 69 74 69 61 6c 69 |nd then.|initiali|
|00000840| 7a 65 73 20 69 74 20 77 | 69 74 68 20 38 20 63 68 |zes it w|ith 8 ch|
|00000850| 61 72 73 2e 20 20 54 68 | 69 73 20 69 73 20 69 6c |ars. Th|is is il|
|00000860| 6c 65 67 61 6c 2e 0a 0a | 20 7c 20 6e 6f 74 20 61 |legal...| | not a|
|00000870| 20 22 43 20 73 74 72 69 | 6e 67 22 20 61 6e 64 20 | "C stri|ng" and |
|00000880| 63 61 6e 27 74 20 62 65 | 20 75 73 65 64 20 77 69 |can't be| used wi|
|00000890| 74 68 20 74 68 65 20 43 | 20 6c 69 62 72 61 72 79 |th the C| library|
|000008a0| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 68 61 74 0a | functio|ns that.|
|000008b0| 20 7c 20 75 6e 64 65 72 | 73 74 61 6e 64 20 6e 75 | | under|stand nu|
|000008c0| 6c 6c 2d 74 65 72 6d 69 | 6e 61 74 65 64 20 73 74 |ll-termi|nated st|
|000008d0| 72 69 6e 67 73 2e 20 20 | 49 74 20 63 61 6e 20 73 |rings. |It can s|
|000008e0| 74 69 6c 6c 20 62 65 20 | 75 73 65 64 20 77 69 74 |till be |used wit|
|000008f0| 68 20 74 68 65 20 6d 65 | 6d 2a 0a 20 7c 20 66 75 |h the me|m*. | fu|
|00000900| 6e 63 74 69 6f 6e 73 2c | 20 77 68 69 63 68 20 72 |nctions,| which r|
|00000910| 65 71 75 69 72 65 20 74 | 68 61 74 20 74 68 65 20 |equire t|hat the |
|00000920| 6c 65 6e 67 74 68 20 6f | 66 20 74 68 65 20 61 72 |length o|f the ar|
|00000930| 67 75 6d 65 6e 74 73 20 | 62 65 20 70 61 73 73 65 |guments |be passe|
|00000940| 64 0a 20 7c 20 61 73 20 | 61 6e 20 61 72 67 75 6d |d. | as |an argum|
|00000950| 65 6e 74 2e 0a 0a 2d 2d | 20 0a 52 69 63 68 20 4b |ent...--| .Rich K|
|00000960| 61 73 70 65 72 6f 77 73 | 6b 69 20 20 20 20 20 20 |asperows|ki |
|00000970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 43 61 6d | | Cam|
|00000980| 62 72 69 64 67 65 2c 20 | 4d 41 2c 20 55 53 41 20 |bridge, |MA, USA |
|00000990| 20 20 0a 68 6f 6d 65 3a | 20 20 20 6b 61 73 70 65 | .home:| kaspe|
|000009a0| 72 6f 77 73 6b 69 40 61 | 63 6d 2e 6f 72 67 0a 77 |rowski@a|cm.org.w|
|000009b0| 6f 72 6b 3a 20 20 20 72 | 69 63 68 6b 40 63 6f 6e |ork: r|ichk@con|
|000009c0| 63 65 6e 74 72 61 2e 63 | 6f 6d 20 20 20 20 20 20 |centra.c|om |
|000009d0| 20 20 2b 31 2d 36 31 37 | 2d 32 32 39 2d 34 36 33 | +1-617|-229-463|
|000009e0| 37 0a | |7. | |
+--------+-------------------------+-------------------------+--------+--------+